import { useUser } from '@/store/modules/user'
export function useHasPermi(permi: string): boolean {
  const user = useUser()
  const { userPermi } = user
  const permissionFlag = userPermi.some((item) => item.funcPerms === permi)
  return !!(permi && permissionFlag)
}
